package com.liumh.entity;

import java.security.PublicKey;

import org.eclipse.jdt.internal.compiler.ast.ThisReference;

public class goods {
	private String sid;
	public goods(String sid, String goodsname, int price, int quantity) {
		super();
		this.sid = sid;
		this.goodsname = goodsname;
		this.price = price;
		this.quantity = quantity;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getGoodsname() {
		return goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	private String goodsname;
	private int  price;
	private int quantity;
	
		public void show() {
			System.out.println("商品编号："+sid+"商品名称："+goodsname +"商品单价："+price+"商品数量："+quantity);
		}
}
